<%-- 
    Document   : goHome
    Created on : 22/10/2013, 04:59:47 PM
    Author     : Sistema
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
                <%@include file="../../template/estilos.jsp"%>
<%@include file="../../template/script.jsp" %>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body class="page-header-fixed">
     <div class="header navbar navbar-inverse navbar-fixed-top">
		<!-- BEGIN TOP NAVIGATION BAR -->
		<div class="navbar-inner">
			<div class="container-fluid">
				<!-- BEGIN LOGO -->
				<a class="brand" href="index.html"> <img
					src="${pageContext.request.contextPath}/resources/assets/img/logo.png"
					alt="logo" />
				</a>
				<!-- END LOGO -->
				<!-- BEGIN RESPONSIVE MENU TOGGLER -->
				<a href="javascript:;" class="btn-navbar collapsed"
					data-toggle="collapse" data-target=".nav-collapse"> <img
					src="${pageContext.request.contextPath}/resources/assets/img/menu-toggler.png"
					alt="" />
				</a>
				<!-- END RESPONSIVE MENU TOGGLER -->
				<!-- BEGIN TOP NAVIGATION MENU -->
				<!-- END TOP NAVIGATION MENU -->
			</div>
		</div>
		<!-- END TOP NAVIGATION BAR -->
	</div>
        <%
         Cookie cookie = null;
                      Cookie[] cookies = null; 
                        // Get an array of Cookies associated with this domain
                      cookies = request.getCookies();
   
                      if( cookies != null ){ 
                        for (int i = 0; i < cookies.length; i++){
          
                         cookie = cookies[i];
                            
                          if(cookie.getName().equals("billing") && !cookie.getValue().equals(request.getParameter("sessionId"))){
                              cookie.setValue("");
                              cookie.setPath("/");
                              
                              Cookie cookie_2 = new Cookie("billing" , "" );
                              cookie_2.setMaxAge(0);
                              cookie = cookie_2;
                              response.addCookie(cookie);
                              
                           }  
                        }
                     }    
                      
                      String session2 = request.getParameter("sessionId").toString();
                      
         %>
         <div class="page-container">
         <form action="/GedeonMvc/" id="pageStart"  method="post">
             <input type="hidden" name="sessionId" value="<%=session2 %>" />
             <input type="hidden" name="closedSession" value="1" />
         </form>
             <div align="center">
               <img src="${pageContext.request.contextPath}/resources/assets/img/ajax-loader.gif" width="50%" />  
               <br>
               <b style="color:#999999;" align="center">Cargando....</b>
               <b>
               <p style="color:#999999;">
                <%
                java.util.Calendar  fecha = java.util.Calendar .getInstance();
                out.println(fecha.get(java.util.Calendar .YEAR));
                %>&copy; Metronic by keenthemes.   
               </p>
               
               </b>
               </div>
         </div>
    </body>
    
        <script>
            document.getElementById("pageStart").submit();
        </script>
</html>
